package com.idol.sql.session;

import com.idol.pojo.Configeration;

/**
 * @author Supreme_Sir
 * @version 1.0
 * @className DefaultSqlSessionFactory
 * @description
 * @date 2020/9/26 16:30
 **/
public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configeration configeration;

    public DefaultSqlSessionFactory(Configeration configeration) {
        this.configeration = configeration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configeration);
    }
}
